package com.dawn.iiotgateway.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dawn.iiotgateway.entity.OpcConfig;
import com.dawn.iiotgateway.mapper.OpcConfigMapper;
import com.dawn.iiotgateway.service.IOpcConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OpcConfigImpl extends ServiceImpl<OpcConfigMapper, OpcConfig> implements IOpcConfigService {


    @Override
    public List<OpcConfig> getConfigurations() {

        List<OpcConfig> opcConfigurations = opcConfigMapper.selectList(new QueryWrapper<OpcConfig>());
        return opcConfigurations;
    }

    @Autowired
    private OpcConfigMapper opcConfigMapper;


}
